export const getExpirationColor = (expirationDate: string): string => {
  const today = Math.floor(Date.now() / 1000)
  const timeDifference = Number(expirationDate) - today
  const daysDifference = Math.ceil(timeDifference / (60 * 60 * 24))
  // 已过期
  if (timeDifference < 0) return 'expired-time'
  // 距离到期时间14天以内
  if (daysDifference <= 14 && daysDifference >= 0) return 'due-time'
}
